﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:my="clr-namespace:UltimatePoker"
	xmlns:controls="clr-namespace:UltimatePoker.Controls"
    >

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/UltimatePoker;component/Resources/CardArtTemplates.xaml"/>
    </ResourceDictionary.MergedDictionaries>

    <!--Convertes-->
    <my:CardValueConverter x:Key="CardValueConverter"/>
    <my:CardTemplateSelector x:Key="CardTemplateSelector"/>
    <my:CashConverter x:Key="CashConverter"/>
    <my:ActionNameConverter x:Key="ActionNameConverter"/>
    <my:MarginConverter x:Key="MarginConverter"/>
    <BooleanToVisibilityConverter x:Key="BooleanToVisibility"/>
    <my:ColumnConverter x:Key="ColumnConverter"/>
    <my:CardArtTemplateSelector x:Key="CardArtTemplateSelector"/>

    <!--Default Colors-->
    <SolidColorBrush x:Key="CardBlack">
        <SolidColorBrush.Color>#FF000000</SolidColorBrush.Color>
    </SolidColorBrush>
    <SolidColorBrush x:Key="CardRed">
        <SolidColorBrush.Color>#FFC50000</SolidColorBrush.Color>
    </SolidColorBrush>

    <!--Defines a default style for the application buttons-->
    <Style TargetType="{x:Type Button}">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Button">
                    <Grid>
                        <Rectangle StrokeThickness="2" RadiusX="4" RadiusY="4" x:Name="rectangle">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.482,1.278" StartPoint="0.482,0.022">
                                    <GradientStop Color="#FF02811A" Offset="0.01"/>
                                    <GradientStop Color="#FF150F00" Offset="0.75"/>
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                            <Rectangle.Stroke>
                                <LinearGradientBrush EndPoint="0.479,0.951" StartPoint="0.479,-0.12">
                                    <GradientStop Color="#FFFFDA00" Offset="0"/>
                                    <GradientStop Color="#FF242424" Offset="1"/>
                                </LinearGradientBrush>
                            </Rectangle.Stroke>
                        </Rectangle>
                        <ContentPresenter HorizontalAlignment="Center"
															VerticalAlignment="Center"/>
                    </Grid>
                    <ControlTemplate.Triggers>
                        <EventTrigger RoutedEvent="Mouse.MouseEnter">
                            <EventTrigger.Actions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF03D52B"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </EventTrigger.Actions>
                        </EventTrigger>
                        <EventTrigger RoutedEvent="Mouse.MouseLeave">
                            <EventTrigger.Actions>
                                <BeginStoryboard>
                                    <Storyboard>
                                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[1].(GradientStop.Offset)">
                                            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.76"/>
                                        </DoubleAnimationUsingKeyFrames>
                                        <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)">
                                            <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="#FF02811A"/>
                                        </ColorAnimationUsingKeyFrames>
                                    </Storyboard>
                                </BeginStoryboard>
                            </EventTrigger.Actions>
                        </EventTrigger>

                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="FontWeight" Value="Bold"/>
                        </Trigger>

                        <Trigger Property="IsPressed" Value="True">
                            <Setter Property="Fill" TargetName="rectangle" Value="#FF02811A"/>
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="False">
                            <Setter Property="Fill" TargetName="rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.482,1.278" StartPoint="0.482,0.022">
                                        <GradientStop Color="#FF4F8259" Offset="0.01"/>
                                        <GradientStop Color="#FF150F00" Offset="0.75"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Stroke" TargetName="rectangle">
                                <Setter.Value>
                                    <LinearGradientBrush EndPoint="0.479,0.951" StartPoint="0.479,-0.12">
                                        <GradientStop Color="#FFD3C886" Offset="0.014"/>
                                        <GradientStop Color="#FF242424" Offset="1"/>
                                    </LinearGradientBrush>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground" Value="#FF979797"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground" Value="White"/>
    </Style>

    <!--Defines the control template for the front of the card-->
    <ControlTemplate x:Key="CardFrontControlTemplate">
        <Grid Margin="{Binding Path=IsSelected,Converter={StaticResource MarginConverter}}"
                          Width="121.892" Height="159.752">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.061*"/>
                <ColumnDefinition Width="0.165*"/>
                <ColumnDefinition Width="0.564*"/>
                <ColumnDefinition Width="0.167*"/>
                <ColumnDefinition Width="0.043*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="0.038*"/>
                <RowDefinition Height="0.113*"/>
                <RowDefinition Height="0.132*"/>
                <RowDefinition Height="0.429*"/>
                <RowDefinition Height="0.134*"/>
                <RowDefinition Height="0.121*"/>
                <RowDefinition Height="0.033*"/>
            </Grid.RowDefinitions>
            <Grid.BitmapEffect>
                <DropShadowBitmapEffect Direction="185" Opacity="0.7" ShadowDepth="3"/>
            </Grid.BitmapEffect>
            <Rectangle Fill="#FFFFFFFF" Stroke="#FF000000" RadiusX="14.5" RadiusY="14.5" x:Name="CardBorder" Grid.ColumnSpan="5" Grid.RowSpan="7"
											 Visibility="{Binding Path=IsSelected,Converter={StaticResource BooleanToVisibility},FallbackValue=Hidden}">
                <Rectangle.BitmapEffect>
                    <OuterGlowBitmapEffect GlowSize="9" GlowColor="#FF1144FF"/>
                </Rectangle.BitmapEffect>
            </Rectangle>
            <Rectangle Fill="#FFFFFFFF" Stroke="#FF000000" RadiusX="14.5" RadiusY="14.5" Grid.ColumnSpan="5" Grid.RowSpan="7" x:Name="CardBG"/>
            <TextBlock FontSize="15" FontWeight="Bold" Text="{Binding Path=Card.CardValue,Converter={StaticResource CardValueConverter}}"
					   TextWrapping="Wrap" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1" x:Name="CardTopText"/>
			<controls:SuiteControl Grid.Row="2" Grid.Column="1" x:Name="CardTopSuite" Content="{Binding Path=Card}"/>
			<TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="3" Grid.Row="5" FontSize="15" FontWeight="Bold" TextWrapping="Wrap" RenderTransformOrigin="0.5,0.5"
						 Text="{Binding Path=Card.CardValue,Converter={StaticResource CardValueConverter}}" x:Name="CardBottomText">
				<TextBlock.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="-1" ScaleY="-1"/>
						<SkewTransform AngleX="0" AngleY="0"/>
						<RotateTransform Angle="0"/>
						<TranslateTransform X="0" Y="0"/>
					</TransformGroup>
				</TextBlock.RenderTransform>
			</TextBlock>
			<controls:SuiteControl Grid.Column="3" Grid.Row="4" RenderTransformOrigin="0.5,0.5" x:Name="CardBottomSuite" Content="{Binding Path=Card}">
				<controls:SuiteControl.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="-1" ScaleY="-1"/>
						<SkewTransform AngleX="0" AngleY="0"/>
						<RotateTransform Angle="0"/>
						<TranslateTransform X="0" Y="0"/>
					</TransformGroup>
				</controls:SuiteControl.RenderTransform>
			</controls:SuiteControl>
			<ContentControl x:Name="CardArtHolder" Grid.Row="1" Grid.RowSpan="5" Grid.Column="2"
							ContentTemplateSelector="{StaticResource CardArtTemplateSelector}" Content="{Binding Path=Card}"/>
			<ContentPresenter/>
		</Grid>
        <!--Sets colors and symbols according to suite-->
        <ControlTemplate.Triggers>
            <DataTrigger Binding="{Binding Path=Card.CardSuite}" Value="Spades">
                <Setter TargetName="CardTopText" Property="Foreground" Value="{StaticResource CardBlack}"/>
                <Setter TargetName="CardBottomText" Property="Foreground" Value="{StaticResource CardBlack}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=Card.CardSuite}" Value="Hearts">
                <Setter TargetName="CardTopText" Property="Foreground" Value="{StaticResource CardRed}"/>
                <Setter TargetName="CardBottomText" Property="Foreground" Value="{StaticResource CardRed}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=Card.CardSuite}" Value="Diamonds">
                <Setter TargetName="CardTopText" Property="Foreground" Value="{StaticResource CardRed}"/>
                <Setter TargetName="CardBottomText" Property="Foreground" Value="{StaticResource CardRed}"/>
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=Card.CardSuite}" Value="Clobes">
                <Setter TargetName="CardTopText" Property="Foreground" Value="{StaticResource CardBlack}"/>
                <Setter TargetName="CardBottomText" Property="Foreground" Value="{StaticResource CardBlack}"/>
            </DataTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <DataTemplate x:Key="CardFrontTemplate" DataType="{x:Type my:CardWrapper}">
        <Button x:Name="CardButton" Template="{StaticResource CardFrontControlTemplate}"/>
    </DataTemplate>

    <!--Defines the way cards are displayed one over the other-->
    <Style x:Key="CardsItemsControl" TargetType="{x:Type ItemsControl}" BasedOn="{StaticResource {x:Type ItemsControl}}">
        <Setter Property="Panel.ZIndex" Value="1"/>
        <Setter Property="ItemsPanel">
            <Setter.Value>
                <ItemsPanelTemplate>
                    <Grid HorizontalAlignment="Stretch">
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                            <ColumnDefinition Width="1*"/>
                        </Grid.ColumnDefinitions>
                    </Grid>
                </ItemsPanelTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="ItemContainerStyle">
            <Setter.Value>
                <Style TargetType="{x:Type ContentPresenter}" >
                    <Setter Property="Grid.ColumnSpan" Value="4"/>
                    <Setter Property="Grid.Column">
                        <Setter.Value>
                            <MultiBinding Converter="{StaticResource ColumnConverter}">
                                <Binding RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type ItemsControl}}"/>
                                <Binding RelativeSource="{x:Static RelativeSource.Self}"/>
                            </MultiBinding>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
    </Style>

    <!--The drawing for the dealer chip-->
    <Style x:Key="DealerChip" TargetType="{x:Type Control}">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="Control">
                    <Grid x:Name="Chip" Height="65.445" Width="65.445" HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Grid.BitmapEffect>
                            <DropShadowBitmapEffect Direction="274"/>
                        </Grid.BitmapEffect>
                        <Grid.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                <SkewTransform AngleX="0" AngleY="0"/>
                                <RotateTransform Angle="0"/>
                                <TranslateTransform X="0" Y="0"/>
                            </TransformGroup>
                        </Grid.RenderTransform>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="0.181*"/>
                            <ColumnDefinition Width="0.646*"/>
                            <ColumnDefinition Width="0.173*"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="0.403*"/>
                            <RowDefinition Height="0.202*"/>
                            <RowDefinition Height="0.395*"/>
                        </Grid.RowDefinitions>
                        <Ellipse Fill="White" Stroke="#FF000000" StrokeThickness="0" x:Name="ChipBG" Grid.ColumnSpan="3" Grid.RowSpan="3"/>
                        <Ellipse Fill="{x:Null}" Stroke="Green" StrokeThickness="6" Margin="5.759,5.759,5.759,5.759" x:Name="ColorChip" Grid.ColumnSpan="3" Grid.RowSpan="3"/>
                        <Path Fill="{x:Null}" Stretch="Fill" Stroke="Black" StrokeThickness="6" Margin="17.877,2.816,18.368,2.652" Grid.Column="1" Grid.RowSpan="3" Data="M150,71 L150,122.5"/>
                        <Path Fill="{x:Null}" Stretch="Fill" Stroke="Black" StrokeThickness="6" Data="M150,71 L150,122.5" RenderTransformOrigin="0.5,0.5" Margin="17.877,2.816,18.368,2.652" Grid.Column="1" Grid.RowSpan="3">
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="-34.088"/>
                                    <TranslateTransform X="0" Y="0"/>
                                </TransformGroup>
                            </Path.RenderTransform>
                        </Path>
                        <Path Fill="{x:Null}" Stretch="Fill" Stroke="Black" StrokeThickness="6" Data="M150,71 L150,122.5" RenderTransformOrigin="0.5,0.5" Margin="17.877,2.816,18.368,2.652" Grid.Column="1" Grid.RowSpan="3">
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="-64.172"/>
                                    <TranslateTransform X="0" Y="0"/>
                                </TransformGroup>
                            </Path.RenderTransform>
                        </Path>
                        <Path Fill="{x:Null}" Stretch="Fill" Stroke="Black" StrokeThickness="6" Data="M150,71 L150,122.5" RenderTransformOrigin="0.5,0.5" Margin="17.877,2.816,18.368,2.652" Grid.Column="1" Grid.RowSpan="3">
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="-90.123"/>
                                    <TranslateTransform X="0" Y="0"/>
                                </TransformGroup>
                            </Path.RenderTransform>
                        </Path>
                        <Path Fill="{x:Null}" Stretch="Fill" Stroke="Black" StrokeThickness="6" Data="M150,71 L150,122.5" RenderTransformOrigin="0.5,0.5" Margin="17.877,2.816,18.368,2.652" Grid.Column="1" Grid.RowSpan="3">
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="-145.249"/>
                                    <TranslateTransform X="0" Y="0"/>
                                </TransformGroup>
                            </Path.RenderTransform>
                        </Path>
                        <Path Fill="{x:Null}" Stretch="Fill" Stroke="Black" StrokeThickness="6" Data="M150,71 L150,122.5" RenderTransformOrigin="0.5,0.5" Margin="17.877,2.816,18.368,2.652" Grid.Column="1" Grid.RowSpan="3">
                            <Path.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="-119.764"/>
                                    <TranslateTransform X="0" Y="0"/>
                                </TransformGroup>
                            </Path.RenderTransform>
                        </Path>
                        <Ellipse Fill="White" Stroke="{x:Null}" StrokeThickness="6" Margin="10.743,10.913,10.422,10.251" Grid.ColumnSpan="3" Grid.RowSpan="3"/>
                        <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Column="1" Grid.Row="1" Text="Dealer" />
                    </Grid>
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsMouseOver" Value="True">
                            <Setter Property="FontWeight" Value="Bold"/>
                        </Trigger>

                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="Foreground" Value="Black"/>
    </Style>

    <!--The card back side drawing-->
    <Style TargetType="{x:Type Button}" x:Key="CardBackStyle">
        <Setter Property="OverridesDefaultStyle" Value="True"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate>
                    <Grid x:Name="CardBackMini" Width="121.892" Height="159.752" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="0.015*"/>
                            <ColumnDefinition Width="0.424*"/>
                            <ColumnDefinition Width="0.008*"/>
                            <ColumnDefinition Width="0.099*"/>
                            <ColumnDefinition Width="0.01*"/>
                            <ColumnDefinition Width="0.432*"/>
                            <ColumnDefinition Width="0.012*"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="0.01*"/>
                            <RowDefinition Height="0.455*"/>
                            <RowDefinition Height="0.006*"/>
                            <RowDefinition Height="0.051*"/>
                            <RowDefinition Height="0.008*"/>
                            <RowDefinition Height="0.461*"/>
                            <RowDefinition Height="0.009*"/>
                        </Grid.RowDefinitions>
                        <Grid.BitmapEffect>
                            <DropShadowBitmapEffect Direction="185" Opacity="0.7" ShadowDepth="3"/>
                        </Grid.BitmapEffect>
                        <Rectangle Fill="#FF810202" Stroke="#FF000000" RadiusX="14.5" RadiusY="14.5" x:Name="Card_Copy3" Grid.ColumnSpan="7" Grid.RowSpan="7"/>

                        <Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF" RadiusX="13.241" RadiusY="13.241" x:Name="Card_Copy2" Margin="1.118,1.074,1.074,1.026" Grid.ColumnSpan="7" Grid.RowSpan="7"/>
                        <Rectangle Fill="#FFFFFFFF" Stroke="#FFFFFFFF" Grid.Column="2" Grid.ColumnSpan="3" Grid.Row="1" Grid.RowSpan="5"/>
                        <Rectangle Fill="#FFFFFFFF" Stroke="#FFFFFFFF" Margin="1.98,0,0,0" Grid.ColumnSpan="6" Grid.Row="2" Grid.RowSpan="3"/>
                        <Grid x:Name="TopLeft" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="2">

                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.366*"/>
                                <ColumnDefinition Width="0.149*"/>
                                <ColumnDefinition Width="0.485*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.148*"/>
                                <RowDefinition Height="0.069*"/>
                                <RowDefinition Height="0.783*"/>
                            </Grid.RowDefinitions>

                            <Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" Data="M448.21146,235.0298 C448.73981,238.23497 449.02848,240.52707 449.27768,243.55303 449.33789,244.28416 445.19154,239.9119 443.01445,243.24997 441.7082,245.71723 439.82139,250.79691 438.07972,245.5721 438.66028,251.66771 441.41787,253.98984 443.59496,250.65177 445.77204,247.3137 449.65846,253.67861 449.63433,254.86668 449.59945,256.58404 449.11024,259.65005 446.93355,261.82705 444.46579,264.14919 437.71789,266.22999 437.7894,269.51913 446.49774,265.74566 448.462,268.44252&#xa;448.12522,270.28196 445.80829,282.93661 441.3916,290.6493 438.64823,290.4969 419.34474,292.10543 435.69909,281.3829 435.69909,281.3829 448.03187,267.44198 415.05508,277.09339 408.88869,275.21673 402.72229,273.34006 421.48957,267.17388 421.48957,267.17388 421.48957,267.17388 431.67753,265.56531 429.8008,256.98628 426.2172,252.0171 426.09075,245.67373 433.55426,245.99439 426.31545,243.04535 428.19218,248.40725 421.48957,246.26249 413.44645,243.31345&#xa;411.56973,249.74769 411.56973,249.74769 411.56973,249.74769 420.15075,242.2963 413.98266,258.05866 411.56973,264.22484 416.73561,266.09044 416.73561,266.09044 400.91757,271.72043 396.55599,281.651 415.86003,277.89767 447.22766,272.53578 431.67825,281.3829 431.67825,281.3829 431.67825,281.3829 416.39637,292.64199 435.96741,292.91009 435.96741,292.91009 433.87251,295.97487 422.28315,297.96156 422.28315,297.96156 416.98436,295.14724 423.27588,285.71043&#xa;426.42164,279.41923 413.50747,281.40593 413.50747,281.40593 413.50747,281.40593 422.94475,283.39277 418.64002,286.86949 414.3353,290.3462 411.52149,296.63709 416.15734,299.61713 416.15734,299.61713 413.64,301.10608 408.8387,301.76831 402.87855,298.62265 412.64564,295.31261 405.85779,289.35172 407.6794,293.65544 398.60753,299.12005 402.41567,303.42496 400.42897,303.75596 401.64952,304.1451 396.84851,304.47592 L396.84867,316.24621 454.63192,316.24646 454.63181,235.03027 z" Grid.ColumnSpan="3" Grid.RowSpan="3"/>
                            <Path Fill="{x:Null}" Stretch="Fill" Stroke="#FF810202" Data="M419.5367,258.52248 C419.5367,258.52248 422.12864,258.33768 423.59499,261.85317 424.85116,258.88451 426.92818,258.81218 427.65303,258.81218" Grid.Column="1" Grid.ColumnSpan="1" Grid.Row="1" Grid.RowSpan="1"/>

                        </Grid>
                        <Grid x:Name="BottomRight" RenderTransformOrigin="0.5,0.5" Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="4" Grid.RowSpan="2">

                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.366*"/>
                                <ColumnDefinition Width="0.149*"/>
                                <ColumnDefinition Width="0.485*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.148*"/>
                                <RowDefinition Height="0.069*"/>
                                <RowDefinition Height="0.783*"/>
                            </Grid.RowDefinitions>

                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="-1" ScaleY="-1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform X="0" Y="0"/>
                                </TransformGroup>
                            </Grid.RenderTransform>

                            <Path Fill="#FFFFFFFF" Stretch="Fill" Stroke="#FFFFFFFF" Data="M448.21146,235.0298 C448.73981,238.23497 449.02848,240.52707 449.27768,243.55303 449.33789,244.28416 445.19154,239.9119 443.01445,243.24997 441.7082,245.71723 439.82139,250.79691 438.07972,245.5721 438.66028,251.66771 441.41787,253.98984 443.59496,250.65177 445.77204,247.3137 449.65846,253.67861 449.63433,254.86668 449.59945,256.58404 449.11024,259.65005 446.93355,261.82705 444.46579,264.14919 437.71789,266.22999 437.7894,269.51913 446.49774,265.74566 448.462,268.44252&#xa;448.12522,270.28196 445.80829,282.93661 441.3916,290.6493 438.64823,290.4969 419.34474,292.10543 435.69909,281.3829 435.69909,281.3829 448.03187,267.44198 415.05508,277.09339 408.88869,275.21673 402.72229,273.34006 421.48957,267.17388 421.48957,267.17388 421.48957,267.17388 431.67753,265.56531 429.8008,256.98628 426.2172,252.0171 426.09075,245.67373 433.55426,245.99439 426.31545,243.04535 428.19218,248.40725 421.48957,246.26249 413.44645,243.31345&#xa;411.56973,249.74769 411.56973,249.74769 411.56973,249.74769 420.15075,242.2963 413.98266,258.05866 411.56973,264.22484 416.73561,266.09044 416.73561,266.09044 400.91757,271.72043 396.55599,281.651 415.86003,277.89767 447.22766,272.53578 431.67825,281.3829 431.67825,281.3829 431.67825,281.3829 416.39637,292.64199 435.96741,292.91009 435.96741,292.91009 433.87251,295.97487 422.28315,297.96156 422.28315,297.96156 416.98436,295.14724 423.27588,285.71043&#xa;426.42164,279.41923 413.50747,281.40593 413.50747,281.40593 413.50747,281.40593 422.94475,283.39277 418.64002,286.86949 414.3353,290.3462 411.52149,296.63709 416.15734,299.61713 416.15734,299.61713 413.64,301.10608 408.8387,301.76831 402.87855,298.62265 412.64564,295.31261 405.85779,289.35172 407.6794,293.65544 398.60753,299.12005 402.41567,303.42496 400.42897,303.75596 401.64952,304.1451 396.84851,304.47592 L396.84867,316.24621 454.63192,316.24646 454.63181,235.03027 z" Grid.ColumnSpan="3" Grid.RowSpan="3"/>
                            <Path Fill="{x:Null}" Stretch="Fill" Stroke="#FF810202" Data="M419.5367,258.52248 C419.5367,258.52248 422.12864,258.33768 423.59499,261.85317 424.85116,258.88451 426.92818,258.81218 427.65303,258.81218" Grid.Column="1" Grid.ColumnSpan="1" Grid.Row="1" Grid.RowSpan="1"/>

                        </Grid>
                        <Grid x:Name="TopRight" Margin="1.32,0,0,1.05" Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="2">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.279*"/>
                                <ColumnDefinition Width="0.06*"/>
                                <ColumnDefinition Width="0.156*"/>
                                <ColumnDefinition Width="0.114*"/>
                                <ColumnDefinition Width="0.09*"/>
                                <ColumnDefinition Width="0.151*"/>
                                <ColumnDefinition Width="0.138*"/>
                                <ColumnDefinition Width="0.012*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.036*"/>
                                <RowDefinition Height="0.226*"/>
                                <RowDefinition Height="0.148*"/>
                                <RowDefinition Height="0.087*"/>
                                <RowDefinition Height="0.087*"/>
                                <RowDefinition Height="0.183*"/>
                                <RowDefinition Height="0.231*"/>
                                <RowDefinition Height="0.002*"/>
                            </Grid.RowDefinitions>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Diamonds_Copy3" Data="M377,170 L343.7425,229.76889 376.08339,292.28313 408.42339,229.76889 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.ColumnSpan="2" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="20.791"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Spades_Copy6" Data="M408.25275,58.865239 C408.25275,58.865239 366.27797,107.25342 396.30183,111.91732 410.29374,112.50038 400.09134,125.90818 395.13582,126.20034 390.18031,126.4925 423.57964,126.17685 423.57964,126.17685 425.81643,126.00177 406.54119,121.2227 419.03826,112.20881 439.735,114.54077 437.19767,85.755041 408.25275,58.865239 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-52.687"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Diamonds_Copy2" Data="M377,170 L343.7425,229.76889 376.08339,292.28313 408.42339,229.76889 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="35.738"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Clubs_Copy2" Data="F1 M8.8850002,-14.439 C14.533769,-14.439 19.113001,-10.372402 19.113001,-5.3559999 19.113001,-1.8951652 16.933437,1.1135936 13.671454,2.5310738 13.758695,3.6462593 14.178701,4.8272204 15.399819,4.9543962 C16.817385,2.0263681 19.642809,0.12 22.870001,0.11999989 C27.778154,0.12 31.757,4.5295477 31.757,9.9689999 C31.757,15.408452 27.778154,19.818001 22.870001,19.818001 C19.475044,19.818001 16.524712,17.708275 15.138498,14.554057 L12.188419,14.640689 C12.188923,14.686196 12.341055,28.064857 17.239002,30.369699 8.7251759,30.513975 1.0770371,30.514006 1.077037,30.514006 1.1171052,30.473845 7.9974036,23.561457 5.839149,14.640887 4.5910993,14.681144 3.6238582,14.710169 2.8778701,14.730625 C1.4479682,17.793743 -1.5133642,19.818001 -4.9105,19.818001 -9.9244175,19.818001 -13.989,15.408452 -13.989,9.9689999 -13.989,4.5295477 -9.9244175,0.12 -4.9105,0.11999989 C-1.8569651,0.12 0.84446633,1.7554811 2.3486845,4.3558726 2.9178689,4.1311555 3.3865914,3.4838374 3.580575,2.2209432 C0.59282494,0.76565546 -1.3430001,-2.0944118 -1.3430001,-5.3559999 -1.3430001,-10.372402 3.2362316,-14.439 8.8850002,-14.439 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.ColumnSpan="2" Grid.Row="2" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-23.373"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Hearts_Copy2" Data="M421.00052,229.00156 C346.00057,177.00076 400.00028,314.00138 425.00004,319.00108 450.0002,313.00159 498.00013,170.0008 421.00052,229.00156 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="2" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="16.946"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Spades_Copy1" Data="M408.25275,58.865239 C408.25275,58.865239 366.27797,107.25342 396.30183,111.91732 410.29374,112.50038 400.09134,125.90818 395.13582,126.20034 390.18031,126.4925 423.57964,126.17685 423.57964,126.17685 425.81643,126.00177 406.54119,121.2227 419.03826,112.20881 439.735,114.54077 437.19767,85.755041 408.25275,58.865239 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" HorizontalAlignment="Left" Grid.Column="4" Grid.ColumnSpan="3" Grid.Row="2" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-52.687"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Hearts_Copy" Data="M421.00052,229.00156 C346.00057,177.00076 400.00028,314.00138 425.00004,319.00108 450.0002,313.00159 498.00013,170.0008 421.00052,229.00156 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.ColumnSpan="2" Grid.Row="4" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="16.946"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Diamonds_Copy" Data="M377,170 L343.7425,229.76889 376.08339,292.28313 408.42339,229.76889 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="4" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-10.381"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Clubs_Copy1" Data="F1 M8.8850002,-14.439 C14.533769,-14.439 19.113001,-10.372402 19.113001,-5.3559999 19.113001,-1.8951652 16.933437,1.1135936 13.671454,2.5310738 13.758695,3.6462593 14.178701,4.8272204 15.399819,4.9543962 C16.817385,2.0263681 19.642809,0.12 22.870001,0.11999989 C27.778154,0.12 31.757,4.5295477 31.757,9.9689999 C31.757,15.408452 27.778154,19.818001 22.870001,19.818001 C19.475044,19.818001 16.524712,17.708275 15.138498,14.554057 L12.188419,14.640689 C12.188923,14.686196 12.341055,28.064857 17.239002,30.369699 8.7251759,30.513975 1.0770371,30.514006 1.077037,30.514006 1.1171052,30.473845 7.9974036,23.561457 5.839149,14.640887 4.5910993,14.681144 3.6238582,14.710169 2.8778701,14.730625 C1.4479682,17.793743 -1.5133642,19.818001 -4.9105,19.818001 -9.9244175,19.818001 -13.989,15.408452 -13.989,9.9689999 -13.989,4.5295477 -9.9244175,0.12 -4.9105,0.11999989 C-1.8569651,0.12 0.84446633,1.7554811 2.3486845,4.3558726 2.9178689,4.1311555 3.3865914,3.4838374 3.580575,2.2209432 C0.59282494,0.76565546 -1.3430001,-2.0944118 -1.3430001,-5.3559999 -1.3430001,-10.372402 3.2362316,-14.439 8.8850002,-14.439 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="4" Grid.ColumnSpan="4" Grid.Row="4" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-23.373"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Clubs_Copy" Data="F1 M8.8850002,-14.439 C14.533769,-14.439 19.113001,-10.372402 19.113001,-5.3559999 19.113001,-1.8951652 16.933437,1.1135936 13.671454,2.5310738 13.758695,3.6462593 14.178701,4.8272204 15.399819,4.9543962 C16.817385,2.0263681 19.642809,0.12 22.870001,0.11999989 C27.778154,0.12 31.757,4.5295477 31.757,9.9689999 C31.757,15.408452 27.778154,19.818001 22.870001,19.818001 C19.475044,19.818001 16.524712,17.708275 15.138498,14.554057 L12.188419,14.640689 C12.188923,14.686196 12.341055,28.064857 17.239002,30.369699 8.7251759,30.513975 1.0770371,30.514006 1.077037,30.514006 1.1171052,30.473845 7.9974036,23.561457 5.839149,14.640887 4.5910993,14.681144 3.6238582,14.710169 2.8778701,14.730625 C1.4479682,17.793743 -1.5133642,19.818001 -4.9105,19.818001 -9.9244175,19.818001 -13.989,15.408452 -13.989,9.9689999 -13.989,4.5295477 -9.9244175,0.12 -4.9105,0.11999989 C-1.8569651,0.12 0.84446633,1.7554811 2.3486845,4.3558726 2.9178689,4.1311555 3.3865914,3.4838374 3.580575,2.2209432 C0.59282494,0.76565546 -1.3430001,-2.0944118 -1.3430001,-5.3559999 -1.3430001,-10.372402 3.2362316,-14.439 8.8850002,-14.439 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.ColumnSpan="2" Grid.Row="6">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-23.373"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Spades_Copy" Data="M408.25275,58.865239 C408.25275,58.865239 366.27797,107.25342 396.30183,111.91732 410.29374,112.50038 400.09134,125.90818 395.13582,126.20034 390.18031,126.4925 423.57964,126.17685 423.57964,126.17685 425.81643,126.00177 406.54119,121.2227 419.03826,112.20881 439.735,114.54077 437.19767,85.755041 408.25275,58.865239 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="6" Grid.RowSpan="1">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="26.687"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Hearts_Copy1" Data="M421.00052,229.00156 C346.00057,177.00076 400.00028,314.00138 425.00004,319.00108 450.0002,313.00159 498.00013,170.0008 421.00052,229.00156 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="3" Grid.ColumnSpan="3" Grid.Row="6">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="16.946"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Diamonds_Copy1" Data="M377,170 L343.7425,229.76889 376.08339,292.28313 408.42339,229.76889 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" HorizontalAlignment="Right" Grid.Column="6" Grid.Row="6">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-10.381"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Spades_Copy7" Data="M408.25275,58.865239 C408.25275,58.865239 366.27797,107.25342 396.30183,111.91732 410.29374,112.50038 400.09134,125.90818 395.13582,126.20034 390.18031,126.4925 423.57964,126.17685 423.57964,126.17685 425.81643,126.00177 406.54119,121.2227 419.03826,112.20881 439.735,114.54077 437.19767,85.755041 408.25275,58.865239 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="3" Grid.ColumnSpan="2" Grid.Row="3" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="38.507"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <Grid x:Name="BottomLeft" RenderTransformOrigin="0.5,0.5" Grid.Column="1" Grid.Row="5" Grid.ColumnSpan="2">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="0.279*"/>
                                <ColumnDefinition Width="0.06*"/>
                                <ColumnDefinition Width="0.156*"/>
                                <ColumnDefinition Width="0.114*"/>
                                <ColumnDefinition Width="0.09*"/>
                                <ColumnDefinition Width="0.151*"/>
                                <ColumnDefinition Width="0.138*"/>
                                <ColumnDefinition Width="0.012*"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="0.036*"/>
                                <RowDefinition Height="0.226*"/>
                                <RowDefinition Height="0.148*"/>
                                <RowDefinition Height="0.087*"/>
                                <RowDefinition Height="0.087*"/>
                                <RowDefinition Height="0.183*"/>
                                <RowDefinition Height="0.231*"/>
                                <RowDefinition Height="0.002*"/>
                            </Grid.RowDefinitions>
                            <Grid.RenderTransform>
                                <TransformGroup>
                                    <ScaleTransform ScaleX="-1" ScaleY="-1"/>
                                    <SkewTransform AngleX="0" AngleY="0"/>
                                    <RotateTransform Angle="0"/>
                                    <TranslateTransform X="0" Y="0"/>
                                </TransformGroup>
                            </Grid.RenderTransform>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Diamonds_Copy4" Data="M377,170 L343.7425,229.76889 376.08339,292.28313 408.42339,229.76889 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.ColumnSpan="2" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="20.791"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Spades_Copy2" Data="M408.25275,58.865239 C408.25275,58.865239 366.27797,107.25342 396.30183,111.91732 410.29374,112.50038 400.09134,125.90818 395.13582,126.20034 390.18031,126.4925 423.57964,126.17685 423.57964,126.17685 425.81643,126.00177 406.54119,121.2227 419.03826,112.20881 439.735,114.54077 437.19767,85.755041 408.25275,58.865239 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-52.687"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Diamonds_Copy5" Data="M377,170 L343.7425,229.76889 376.08339,292.28313 408.42339,229.76889 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="4" Grid.ColumnSpan="2" Grid.Row="1" Grid.RowSpan="1">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="35.738"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Clubs_Copy3" Data="F1 M8.8850002,-14.439 C14.533769,-14.439 19.113001,-10.372402 19.113001,-5.3559999 19.113001,-1.8951652 16.933437,1.1135936 13.671454,2.5310738 13.758695,3.6462593 14.178701,4.8272204 15.399819,4.9543962 C16.817385,2.0263681 19.642809,0.12 22.870001,0.11999989 C27.778154,0.12 31.757,4.5295477 31.757,9.9689999 C31.757,15.408452 27.778154,19.818001 22.870001,19.818001 C19.475044,19.818001 16.524712,17.708275 15.138498,14.554057 L12.188419,14.640689 C12.188923,14.686196 12.341055,28.064857 17.239002,30.369699 8.7251759,30.513975 1.0770371,30.514006 1.077037,30.514006 1.1171052,30.473845 7.9974036,23.561457 5.839149,14.640887 4.5910993,14.681144 3.6238582,14.710169 2.8778701,14.730625 C1.4479682,17.793743 -1.5133642,19.818001 -4.9105,19.818001 -9.9244175,19.818001 -13.989,15.408452 -13.989,9.9689999 -13.989,4.5295477 -9.9244175,0.12 -4.9105,0.11999989 C-1.8569651,0.12 0.84446633,1.7554811 2.3486845,4.3558726 2.9178689,4.1311555 3.3865914,3.4838374 3.580575,2.2209432 C0.59282494,0.76565546 -1.3430001,-2.0944118 -1.3430001,-5.3559999 -1.3430001,-10.372402 3.2362316,-14.439 8.8850002,-14.439 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.ColumnSpan="2" Grid.Row="2" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-23.373"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Hearts_Copy3" Data="M421.00052,229.00156 C346.00057,177.00076 400.00028,314.00138 425.00004,319.00108 450.0002,313.00159 498.00013,170.0008 421.00052,229.00156 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="2" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="16.946"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Spades_Copy3" Data="M408.25275,58.865239 C408.25275,58.865239 366.27797,107.25342 396.30183,111.91732 410.29374,112.50038 400.09134,125.90818 395.13582,126.20034 390.18031,126.4925 423.57964,126.17685 423.57964,126.17685 425.81643,126.00177 406.54119,121.2227 419.03826,112.20881 439.735,114.54077 437.19767,85.755041 408.25275,58.865239 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" HorizontalAlignment="Left" Grid.Column="4" Grid.ColumnSpan="3" Grid.Row="2" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-52.687"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Hearts_Copy4" Data="M421.00052,229.00156 C346.00057,177.00076 400.00028,314.00138 425.00004,319.00108 450.0002,313.00159 498.00013,170.0008 421.00052,229.00156 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.ColumnSpan="2" Grid.Row="4" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="16.946"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Diamonds_Copy6" Data="M377,170 L343.7425,229.76889 376.08339,292.28313 408.42339,229.76889 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="4" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-10.381"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Clubs_Copy4" Data="F1 M8.8850002,-14.439 C14.533769,-14.439 19.113001,-10.372402 19.113001,-5.3559999 19.113001,-1.8951652 16.933437,1.1135936 13.671454,2.5310738 13.758695,3.6462593 14.178701,4.8272204 15.399819,4.9543962 C16.817385,2.0263681 19.642809,0.12 22.870001,0.11999989 C27.778154,0.12 31.757,4.5295477 31.757,9.9689999 C31.757,15.408452 27.778154,19.818001 22.870001,19.818001 C19.475044,19.818001 16.524712,17.708275 15.138498,14.554057 L12.188419,14.640689 C12.188923,14.686196 12.341055,28.064857 17.239002,30.369699 8.7251759,30.513975 1.0770371,30.514006 1.077037,30.514006 1.1171052,30.473845 7.9974036,23.561457 5.839149,14.640887 4.5910993,14.681144 3.6238582,14.710169 2.8778701,14.730625 C1.4479682,17.793743 -1.5133642,19.818001 -4.9105,19.818001 -9.9244175,19.818001 -13.989,15.408452 -13.989,9.9689999 -13.989,4.5295477 -9.9244175,0.12 -4.9105,0.11999989 C-1.8569651,0.12 0.84446633,1.7554811 2.3486845,4.3558726 2.9178689,4.1311555 3.3865914,3.4838374 3.580575,2.2209432 C0.59282494,0.76565546 -1.3430001,-2.0944118 -1.3430001,-5.3559999 -1.3430001,-10.372402 3.2362316,-14.439 8.8850002,-14.439 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="4" Grid.ColumnSpan="4" Grid.Row="4" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-23.373"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Clubs_Copy5" Data="F1 M8.8850002,-14.439 C14.533769,-14.439 19.113001,-10.372402 19.113001,-5.3559999 19.113001,-1.8951652 16.933437,1.1135936 13.671454,2.5310738 13.758695,3.6462593 14.178701,4.8272204 15.399819,4.9543962 C16.817385,2.0263681 19.642809,0.12 22.870001,0.11999989 C27.778154,0.12 31.757,4.5295477 31.757,9.9689999 C31.757,15.408452 27.778154,19.818001 22.870001,19.818001 C19.475044,19.818001 16.524712,17.708275 15.138498,14.554057 L12.188419,14.640689 C12.188923,14.686196 12.341055,28.064857 17.239002,30.369699 8.7251759,30.513975 1.0770371,30.514006 1.077037,30.514006 1.1171052,30.473845 7.9974036,23.561457 5.839149,14.640887 4.5910993,14.681144 3.6238582,14.710169 2.8778701,14.730625 C1.4479682,17.793743 -1.5133642,19.818001 -4.9105,19.818001 -9.9244175,19.818001 -13.989,15.408452 -13.989,9.9689999 -13.989,4.5295477 -9.9244175,0.12 -4.9105,0.11999989 C-1.8569651,0.12 0.84446633,1.7554811 2.3486845,4.3558726 2.9178689,4.1311555 3.3865914,3.4838374 3.580575,2.2209432 C0.59282494,0.76565546 -1.3430001,-2.0944118 -1.3430001,-5.3559999 -1.3430001,-10.372402 3.2362316,-14.439 8.8850002,-14.439 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.ColumnSpan="2" Grid.Row="6">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-23.373"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Spades_Copy4" Data="M408.25275,58.865239 C408.25275,58.865239 366.27797,107.25342 396.30183,111.91732 410.29374,112.50038 400.09134,125.90818 395.13582,126.20034 390.18031,126.4925 423.57964,126.17685 423.57964,126.17685 425.81643,126.00177 406.54119,121.2227 419.03826,112.20881 439.735,114.54077 437.19767,85.755041 408.25275,58.865239 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="1" Grid.ColumnSpan="3" Grid.Row="6" Grid.RowSpan="1">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="26.687"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Hearts_Copy5" Data="M421.00052,229.00156 C346.00057,177.00076 400.00028,314.00138 425.00004,319.00108 450.0002,313.00159 498.00013,170.0008 421.00052,229.00156 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="3" Grid.ColumnSpan="3" Grid.Row="6">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="16.946"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Diamonds_Copy7" Data="M377,170 L343.7425,229.76889 376.08339,292.28313 408.42339,229.76889 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" HorizontalAlignment="Right" Grid.Column="6" Grid.Row="6">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="-10.381"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path Stretch="Fill" Stroke="#FFFFFFFF" x:Name="Spades_Copy5" Data="M408.25275,58.865239 C408.25275,58.865239 366.27797,107.25342 396.30183,111.91732 410.29374,112.50038 400.09134,125.90818 395.13582,126.20034 390.18031,126.4925 423.57964,126.17685 423.57964,126.17685 425.81643,126.00177 406.54119,121.2227 419.03826,112.20881 439.735,114.54077 437.19767,85.755041 408.25275,58.865239 z" RenderTransformOrigin="0.5,0.5" Fill="#FFFFFFFF" Grid.Column="3" Grid.ColumnSpan="2" Grid.Row="3" Grid.RowSpan="2">
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>
                                        <SkewTransform AngleX="0" AngleY="0"/>
                                        <RotateTransform Angle="38.507"/>
                                        <TranslateTransform X="0" Y="0"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <ContentPresenter/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--Defines the template for the card back side-->
    <DataTemplate x:Key="CardBackTemplate">
        <Button x:Name="CardButton" Style="{StaticResource CardBackStyle}"></Button>
    </DataTemplate>
</ResourceDictionary>